<?php

use Illuminate\Database\Seeder;

class topicSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [];
		for ($i = 0; $i < 50; $i++) {
			$tmp['user_id'] = rand(1,50);
			$tmp['column_id'] = rand(1,10);
			$tmp['title'] = str_random(15);
			$tmp['status'] = '1';
			$tmp['created_at'] = date('Y-m-d H:i:s');
			$tmp['updated_at'] = date('Y-m-d H:i:s');
			$data[] = $tmp;
		}
		DB::table('topics')->insert($data);
    }
}
